package fct.mpc.utils;

public class Stat {

	protected String name;
	protected int value;
	
	public Stat(String name, int value) {
		this.name = name;
		this.value = value;
	}
	
	
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public int getValue() {
		return value;
	}
	public void setValue(int value) {
		this.value = value;
	}
	
	public String getAsXML()
	{
		String xml = null;

		xml += "\t<stat>\n";
		xml += "\t\t<name>" + name + "</name>\n";
		xml += "\t\t<value>" + value + "</value>\n";
		xml += "\t</stat>\n";

		return xml;
	}
	
}
